package org.bee.input;

import org.bee.check.Length;
import org.bee.check.NotNull;
import org.bee.check.Regex;
import org.bee.model.BaseModel;

/**
 * 修改密码对象
 */
public class ChangePasswordVo implements BaseModel {

    private String oldPassword;
    /**
     * 密码
     */
    @NotNull
    @Length(min = 6,max = 16,msg="密码长度为6-16位")
    @Regex(value = "^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()\\-_=+{};:,<.>]).+$",msg = "密码必须包含特殊字符以及大小写字母")
    private String newPassword;

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }
}
